#
nums = {23, 7, 67, 7, 56, 67, 7}
print(nums)

items = {23, 'linux', True, False, None}
print(items)

#
names = {'nmame1', 'name2', 'name3', 'name4', 'nmae5'}
print(names)
for item in names:
    print(item)
print(len(names))
print('name2' in names)

#
names.add('name9')
print(names)

#
names.remove('name2')
print(names)

s1 = {1, 2, 3, 4}
s2 = {3, 4, 5, 6}
print(s1.intersection(s2), s1 & s2)
print(s1.union(s2), s1 | s2)
print(s1.difference(s2), s1 - s2)

#
a1 = ['name1', 'name2', 'name1', 'name3', 'name2', 'name1']
print(a1)
a2 = set(a1)
print(a2)
a3 = list(a2)
print(a3)

